package petstore.domain;

import java.io.Serializable;
import java.math.BigDecimal;

public class Item implements Serializable
{
    private static final long UID = -2151591059039L;

    private String itemId;
    private String productId;
    private String categoryId;
    private String name;
    private BigDecimal listPrice;
    private BigDecimal unitPrice;
    private Product product;
    private String description;
    private int quantity;

    public String getDescription() {return description;}

    public void setDescription(String description) {this.description = description;}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getCategoryId()
    {
        return categoryId;
    }

    public void setCategoryId(String categoryId)
    {
        this.categoryId = categoryId;
    }

    public BigDecimal getListPrice() {
        return listPrice;
    }

    public void setListPrice(BigDecimal listPrice) {
        this.listPrice = listPrice;
    }


    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice()
    {
        return unitPrice;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String toString()
    {
        return "{" + getItemId() + "-" + getProductId() + "}";
    }
}
